package com.tuanzi.loan.business.repository.family.custom;

import java.util.List;

import com.tuanzi.loan.business.entity.family.ProductInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.tuanzi.loan.vo.request.family.ProductInfoSearchRequest;
import com.tuanzi.loan.vo.response.family.ProductInfoSearchResponse;

/**
 * @author Ray 2017/09/21
 */

public interface ProductInfoRepositoryCustom {

	Page<ProductInfoSearchResponse> list(ProductInfoSearchRequest searchRequest, Pageable pageable);

	List<ProductInfoSearchResponse> listAllUnionProductInfo();

	/**
	 * 只查找id和产品名称，做下拉列表
	 * @return
	 */
	List<ProductInfo> listAllProductInfo ();

	List<ProductInfo> listAllProductInfoByStatus(Integer status);

	/**
	 * 只查找id和产品名称，做下拉列表
	 * @return
	 */
	List<ProductInfo> listAllProductInfoByCompanyId(Long companyId);

	Page<ProductInfoSearchResponse> getApiList(ProductInfoSearchRequest searchCondition, Pageable pageable);
}
